/**
 * 
 */
package com.lanswon.qzsmk.exception;

/**
 * @author sun
 *
 */
public class UserException extends Exception {

	/**
	 * 
	 */
	private static final long serialVersionUID = 2383553718405532112L;
	
	private int errorCode;

	public UserException(int code, String msg) {
		super(msg);
		this.errorCode = code;

	}

	public int getErrorCode() {
		return errorCode;
	}

	@Override
	public String toString() {
		return "UserException [errorCode=" + errorCode + "]:\t"
				+ this.getMessage();
	}


}
